package com.lonewalker.sparrow.req;

import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @author lonewalker
 */
@Data
public class CommonPageRequest {

    /**
     * 页码
     */
    @Min(value = 1, message = "页码不能为无效值")
    private Long pageNum = 1L;
    /**
     * 页数量
     */
    @Min(value = 1, message = "页数量不能为无效值")
    private Long pageSize = 15L;
}
